package vip.source;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.core.env.Environment;

@SpringBootApplication
public class SourcePatternApplication {

    private static final Logger logger = LoggerFactory.getLogger(SourcePatternApplication.class);

    public static void main(String... args) {
        ConfigurableApplicationContext application = SpringApplication.run(SourcePatternApplication.class, args);
        Environment env = application.getEnvironment();
        String port = env.getProperty("server.port");
        logger.info("\n----------------------------------------------------------\n" +
                "SourcePatternApplication is running!\n" +
                "tPort:" + port + "\n" +
                "----------------------------------------------------------");
    }
}
